

.tree-section-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-right: 1px solid #e5e5e5;

  .custom-tree {
    .ant-tree-node-content-wrapper{
  line-height: 22px ;
  margin-bottom: 10px;
  &:hover {
          background-color: #f5f5f5;
        }
        
        &.ant-tree-node-selected {
          background-color: var(--tree-node-selected-bg, rgba(79, 45, 127, 0.1));
          color: var(--cpasPrimaryColor, #4f2d7f);
          font-weight: 500;
        }
}
 .ant-tree-title {
        font-size: 14px;
        color: rgba(0, 0, 0, 0.9);
        line-height: 22px;
        overflow: visible;
        white-space: normal;
        word-wrap: break-word;
        word-break: break-all;
        flex: 1;
      }
  }
}

// 右键菜单样式优化
.tree-context-menu {
  position: fixed;
  z-index: 1000;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 4px 0;
  min-width: 120px;
  
  .menu-item {
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    line-height: 22px;
    color: #333;
    transition: background-color 0.2s ease;
    
    &:hover {
      background-color: #f5f5f5;
      color: var(--cpasPrimaryColor, #4f2d7f);
    }
    
    &:active {
      background-color: #e6f7ff;
    }
  }
  
  .menu-divider {
    height: 1px;
    background-color: #e8e8e8;
    margin: 4px 0;
  }
}